#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char a[100];
	int i, blank = 0, digit = 0, other = 0;
	gets(a);
	int len = strlen(a);
	for (i = 0; i <= len; i++)
	{
		if (a[i] == ' ')
			blank++;
		else if ('0' <= a[i] && a[i] <= '9')
			digit++;
	}
	other = len - blank - digit;
	printf("blank = %d, digit = %d, other = %d", blank, digit, other);
}